From 3f3e0cd4beb5c1a3a8b7841ad2e1296f2d0940d1 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Fri, 10 Feb 2006 02:03:24 +0100 Subject: [PATCH] Rather than require config changes if you aren't using eth0, use the default network device available no matter the name. It can still be configured if you want a specific network device. Patch by Bill Nottingham . Signed-off-by: Ewan Mellor --- tools/examples/network-bridge | 1 + tools/examples/xend-config.sxp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/examples/network-bridge b/tools/examples/network-bridge index ce383be86d..3c5b044701 100755 --- a/tools/examples/network-bridge +++ b/tools/examples/network-bridge @@ -61,6 +61,7 @@ evalVariables "$@" vifnum=${vifnum:-0} bridge=${bridge:-xenbr${vifnum}} +netdev=${netdev:-$(ip route list default scope global| awk '{ print $NF }')} netdev=${netdev:-eth${vifnum}} antispoof=${antispoof:-no} diff --git a/tools/examples/xend-config.sxp b/tools/examples/xend-config.sxp index dedb2de160..f9ed5642d5 100644 --- a/tools/examples/xend-config.sxp +++ b/tools/examples/xend-config.sxp @@ -70,8 +70,8 @@ # # (network-script network-bridge) # -# Your eth0 is used as the outgoing interface, by default. To use a different -# one (e.g. eth1) use +# Your default ethernet device is used as the outgoing interface, by default. +# To use a different one (e.g. eth1) use # # (network-script 'network-bridge netdev=eth1') # -- 2.30.2